<script lang="ts">
import Vue from 'vue'
import { onLaunch } from 'uni-composition-api'
import store from '@/store/index'

export default Vue.extend({
  //@ts-ignore
  mpType: 'app',
  globalData: {},
  setup(props, { root }) {
    onLaunch(async (params: any) => {
      store.dispatch('tabbar/setList')
    })
  },
  // 监听错误
  onError: function (err) {
    console.error('App', 'onError', err)
  },
})
</script>

<style lang="scss">
@import '@/styles/uview.scss';
/* 每个页面公共css */
@import '~@/styles/common.scss';
@import 'uview-ui/index.scss';
</style>
